const { verifyAuth } = require('../middleware/auth.middleware')
const { avatarHandler } = require('../middleware/file.middleware')
const { saveAvatarInfo } = require('../controller/file.controller')
const Router = require('koa-router')
const fileRouter = new Router({ prefix: '/avatar' })

fileRouter.post('/uploadAvatar', verifyAuth, avatarHandler, saveAvatarInfo)

module.exports = fileRouter